import React,{Fragment,Component} from "react";
import {Route,Redirect,Switch} from 'react-router-dom'

import AppCom from '@/components/main/appCom/appCom'
import TheatreList from '@/components/main/theatreList/theatreList'
import Passport from '@/components/main/passport/passport'
import My from '@/components/main/my/my'

export default class extends Component{
    render(){
        return (
            <Fragment>
               <Switch>
                   <Route path="/appCom" component={AppCom}/>
                   <Route path="/theatreList" component={TheatreList}/>
                   <Route path="/passport" component={Passport}/>
                   <Route path="/my" component={My}/>
                    {/* exact绝对匹配 */}
                    {/* <Route path="/Test/:name/:id" exact component={Test} /> */}
                    <Redirect path="/" to="/appCom"/>
               </Switch>
            </Fragment>
        )
    }
}
